package org.wk.user.enums;

/**
 * @ClassName	: SexType
 * @Package		：org.wk.common.enums
 * @Author df.w 
 * @Create Time	：2018年5月3日 下午4:35:29
 * @Description	: 性别
 */ 
public enum IDCardStatus {
	UNVERIFIED("unverified","未认证"),
	VERIFYING("verifying","审核中"),
	VERIFY_FAIL("verify_fail","审核未通过"),
	VERIFIED("verified","已认证");
	private String code;
	private String name;
	private IDCardStatus(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static IDCardStatus containsCode(String code) {
		for (IDCardStatus item : IDCardStatus.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
	
}
